package genedit.model.graph;

import java.awt.Dimension;
import java.awt.geom.Point2D;

public class SubdocumentElement extends MyRect {
	
	private GraphDocument subDocument;
	
	public SubdocumentElement(GraphDocument parent,GraphDocument subDocument) {
		super(parent);
		this.subDocument=subDocument;
	}
	
	public SubdocumentElement(GraphDocument parent,Point2D position,Dimension size,GraphDocument subDocument) {
		super(parent,position,size);
		this.subDocument=subDocument;
	}
	
	public SubdocumentElement(GraphDocument parent,Point2D position,Dimension size,String name,GraphDocument subDocument) {
		super(parent,position,size,name);
		this.subDocument=subDocument;
	}

	public GraphDocument getSubDocument() {
		return subDocument;
	}

	public void setSubDocument(GraphDocument subDocument) {
		this.subDocument = subDocument;
	}
	
	

}
